#!/usr/bin/env python
from lib.format_time import *
from lib.HandleMysql import *
from lib.handle_mongo import *
from lib.switch_code import *
from zhineng_conn import *
from config_tools import *
from imc_conn import *
from lib.load_data import *
import urllib
import time
import math
import sys
import re
reload(sys)
sys.setdefaultencoding('utf-8')


def main():
    info_id = '14508930660101'
    
    s58=Service58()
    #print s58.hash_code('1,252,253,56,251,60,250,55,59,264,274,262,65,57,271')
    info = s58.get_info(info_id)
    user_ip = info.getUserIP()
    #params = info.getParams()
    print user_ip
    
    #s58.update_info(info_id,2864000)
    #print 'success'

if __name__=='__main__':
    main()